package org.rendao.init
{
	import mx.collections.ArrayCollection;
	
	import org.rendao.service.UserService;
	import org.rendao.service.base.GlobalModule;

	public class AfterLoginHandler
	{
		public function AfterLoginHandler()
		{
			getUserRoles();
		}
		
		private function getUserRoles():void {
			var onGet:Function = function(roles:Array):void {
				GlobalModule.userRoles = new ArrayCollection(roles);
			};
			UserService.instance.getAllRoles(onGet);
		}
	}
}